package com.ttg.web.dao.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.model.mapper.BankCustomerInfoMapper;
import com.ttg.model.pojo.BankCustomerInfo;
import com.ttg.web.dao.BankCustomerInfoDao;
import org.springframework.stereotype.Service;

/**
 * @author zhangHongYuan
 * @description
 * @date 2024/4/16 16:36
 */
@Service
public class BankCustomerInfoDaoImpl extends ServiceImpl<BankCustomerInfoMapper, BankCustomerInfo> implements BankCustomerInfoDao {

    @Override
    public BankCustomerInfo getBankCustomerInfoByCstId(String cstId) {
        LambdaQueryWrapper<BankCustomerInfo> queryWrapper = new LambdaQueryWrapper<BankCustomerInfo>();
        queryWrapper.eq(BankCustomerInfo::getCstId,cstId);
        return getOne(queryWrapper);

    }
}
